<?php
include_once('common/header.php');
if($AppUI->id <= 0 || (isset($_SESSION['education']) && (($_SESSION['education']&1<<1) == 0))) {
	$this->_redirect(HOST_BACKEND);
}
$objCommon					= new Ecore_Common();
$objCategory				= new Category();
$objEducation				= new Education();
$this->view->arrCategory	= $objCategory->getParent(EDUCATION_TYPE);
$this->view->arrProvince	= $objCommon->getProvince();
$this->view->arrUnit		= $arrUnit;
$this->view->arrAdv			= $arrAdv;
if(isset($_SESSION['ECOURSE_POST']['pcategoryid'])) {
	$this->view->arrEducate	= $objEducation->getAllByCate($_SESSION['ECOURSE_POST']['pcategoryid'],$_SESSION['ECOURSE_POST']['pprovince']);
}
if(isset($_SESSION['ECOURSE_POST']['ptbfeature'])) {
	$strJson	= str_replace('\\','',$_SESSION['ECOURSE_POST']['ptbfeature']);	
	$this->view->arrFeatures = json_decode($strJson);
}